import { usePermissions } from '@/store/userStore.ts';

export const usePermissionsGuard = (permissions: string[]) => {
  const _permissions = usePermissions();
  return permissions.every((p) => _permissions.includes(p));
};
